//
//  LineView.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/4/29.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "LineView.h"
#import "InterFace.h"
#import "UIViewAdditions.h"
@implementation LineView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)layoutSubviews{
    [super layoutSubviews];
    self.queRenBut.layer.cornerRadius = 5;
}

#pragma -mark 微商层级关系

- (void)createWeiShangArr:(NSArray *)names{
//    int j = 0;
//
//    for (int i = 1; i <= [names count]*2; i++) {
////微上:张三，→，李四，→，王二，→
//        if (i%2 !=0) {
//            if (i == 1) {
//                //名字
//                UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.weiShang.right, self.weiShang.frame.origin.y, 40, 21)];
//                nameLabel.font = [UIFont fontWithName:nil size:13];
//                nameLabel.text = names[j];
//                [self addSubview:nameLabel];
//            } else{
//                UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake((i-1)*30+self.weiShang.right, self.weiShang.frame.origin.y, 40, 21)];
//                nameLabel.font = [UIFont fontWithName:nil size:13];
//                nameLabel.text = names[j];
//                [self addSubview:nameLabel];
//            }
//            j++;
//        } else{
//            UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake((i-1)*40+self.weiShang.right, self.weiShang.frame.origin.y, 40, 21)];
//            nameLabel.font = [UIFont fontWithName:nil size:13];
//            nameLabel.textColor = DaoHangColor;
//            if (i==[names count]*2) {
//                 nameLabel.text = @"";
//            } else{
//            nameLabel.text = @"→";
//            }
//            [self addSubview:nameLabel];
//            
//        }
//    }
}
@end
